.class Lcom/waiqin365/lightapp/visit/hi;
.super Landroid/os/Handler;


# instance fields
.field a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/hi;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method

.method private a(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)V
    .locals 6

    const v5, 0x7f0804d4

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->n(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v1, "yyyy-MM-dd"

    sget-object v2, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    :try_start_0
    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->e(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {v0}, Ljava/text/ParseException;->printStackTrace()V

    goto :goto_0

    :cond_1
    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->n(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v1, "yyyy-MM-dd"

    sget-object v2, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    :try_start_1
    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->e(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    const v1, 0x7f0804d4

    invoke-virtual {p1, v1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->c(Ljava/lang/String;)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
    :try_end_1
    .catch Ljava/text/ParseException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {p1, v5}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/NoNetView;->c(Ljava/lang/String;)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {v0}, Ljava/text/ParseException;->printStackTrace()V

    goto/16 :goto_0

    :cond_2
    :try_start_2
    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->o(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    const v1, 0x7f0804d4

    invoke-virtual {p1, v1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->c(Ljava/lang/String;)V

    invoke-static {p1}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
    :try_end_2
    .catch Ljava/text/ParseException; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const v7, 0x7f0804dd

    const/16 v4, 0x8

    const/4 v2, 0x0

    const v6, 0x7f08013b

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hi;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :pswitch_0
    goto :goto_0

    :pswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/bg;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->dismissProgressDialog()V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/bg;->b()Z

    move-result v3

    if-eqz v3, :cond_15

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->clear()V

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    if-eqz v2, :cond_14

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bv;->f:Ljava/util/List;

    if-eqz v2, :cond_14

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bv;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    iget-object v3, v3, Lcom/waiqin365/lightapp/visit/b/bv;->f:Ljava/util/List;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bv;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_2
    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_14

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v2

    iget-object v4, v1, Lcom/waiqin365/lightapp/visit/b/bn;->h:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/waiqin365/base/db/offlinedata/d;->d(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lez v4, :cond_2

    invoke-virtual {v2, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/visit/b/bn;->a(Lcom/waiqin365/lightapp/kehu/b/am;)V

    goto :goto_1

    :pswitch_2
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/bh;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/bh;->b()Z

    move-result v3

    if-eqz v3, :cond_d

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    if-eqz v3, :cond_a

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->f(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->clear()V

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v3, v3, Lcom/waiqin365/lightapp/visit/b/j;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->f(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/List;

    move-result-object v2

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/j;->g:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v1

    instance-of v1, v1, Lcom/waiqin365/lightapp/visit/b/l;

    if-eqz v1, :cond_3

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->h(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/b/l;->notifyDataSetChanged()V

    :goto_2
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string/jumbo v2, "yyyy-MM-dd"

    sget-object v3, Ljava/util/Locale;->CHINA:Ljava/util/Locale;

    invoke-direct {v1, v2, v3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    :try_start_0
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->e(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/util/Date;->before(Ljava/util/Date;)Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    :catch_0
    move-exception v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {v1}, Ljava/text/ParseException;->printStackTrace()V

    goto/16 :goto_0

    :cond_3
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->i(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->h(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/l;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_2

    :cond_4
    :try_start_1
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->j(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V
    :try_end_1
    .catch Ljava/text/ParseException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    :cond_5
    const-string/jumbo v2, "0"

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v3, v3, Lcom/waiqin365/lightapp/visit/b/j;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v3, v3, Lcom/waiqin365/lightapp/visit/b/j;->h:Ljava/util/List;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/j;->h:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_6
    :goto_3
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_7

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v2

    iget-object v4, v1, Lcom/waiqin365/lightapp/visit/b/bn;->h:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/waiqin365/base/db/offlinedata/d;->d(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v2

    if-eqz v2, :cond_6

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lez v4, :cond_6

    invoke-virtual {v2, v5}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/visit/b/bn;->a(Lcom/waiqin365/lightapp/kehu/b/am;)V

    goto :goto_3

    :cond_7
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v1

    instance-of v1, v1, Lcom/waiqin365/lightapp/visit/b/bo;

    if-eqz v1, :cond_8

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->k(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/bo;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/b/bo;->notifyDataSetChanged()V

    :goto_4
    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/visit/hi;->a(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)V

    goto/16 :goto_0

    :cond_8
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->l(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Z

    move-result v1

    if-eqz v1, :cond_9

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->i(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "title"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_5
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->k(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/bo;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_4

    :cond_9
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->m(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/view/View;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->i(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v0, v7}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_5

    :cond_a
    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    if-eqz v3, :cond_19

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/j;->b:Ljava/lang/String;

    :goto_6
    if-eqz v1, :cond_b

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_c

    :cond_b
    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_c
    invoke-static {v0, v1, v5}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_d
    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    if-eqz v3, :cond_e

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->b:Lcom/waiqin365/lightapp/visit/b/j;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/j;->b:Ljava/lang/String;

    :cond_e
    if-eqz v2, :cond_f

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_10

    :cond_f
    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    :cond_10
    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/bh;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :pswitch_3
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->dismissProgressDialog()V

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/be;

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/be;->c:Ljava/lang/String;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/be;->b()Z

    move-result v3

    if-eqz v3, :cond_11

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/be;->d:Lcom/waiqin365/lightapp/visit/b/bn;

    if-eqz v3, :cond_11

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->g(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Ljava/util/ArrayList;

    move-result-object v3

    iget-object v4, v1, Lcom/waiqin365/lightapp/visit/a/a/be;->d:Lcom/waiqin365/lightapp/visit/b/bn;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->k(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/bo;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/visit/b/bo;->notifyDataSetChanged()V

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/visit/hi;->a(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)V

    :cond_11
    if-eqz v2, :cond_12

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    if-nez v3, :cond_13

    :cond_12
    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/be;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_13
    invoke-static {v0, v2, v5}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_14
    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->b(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Landroid/widget/ListView;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->k(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)Lcom/waiqin365/lightapp/visit/b/bo;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/visit/hi;->a(Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;)V

    goto/16 :goto_0

    :cond_15
    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    if-eqz v3, :cond_16

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->b:Lcom/waiqin365/lightapp/visit/b/bv;

    iget-object v2, v2, Lcom/waiqin365/lightapp/visit/b/bv;->b:Ljava/lang/String;

    :cond_16
    if-eqz v2, :cond_17

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_18

    :cond_17
    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/visit/VisitPlanManagerActivity;->getString(I)Ljava/lang/String;

    :cond_18
    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/bg;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_19
    move-object v1, v2

    goto/16 :goto_6

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
